

/**********************************/
/* Export panel data set to STATA */
/**********************************/




libname raw 'G:\Data\Rawdata\707677';

libname common 'G:\Data\Workdata\707677\Common\01Data\01SAS';



/* Load data */



data panel;

set common.panel;

run;





data panel;

set panel;

keep pnr granted pyear pmonth male age age0 time aar schooling

SLON_real

TIMELON_real

DISPON_NY_real

LOENMV_real

perindkialt_real

AKTIV_real

PASSIV_real

FORMUE_real

KOEJD_real

BANKGAELD_real

mortgage_real

erhvervsindk_real

house

employed_pstill

unemployed_pstill

out_of_lf_pstill

employed_loenmv

tilbtot_real

disability

kontant_real

social

unempl_benefit   

netovskud_real

dispon_ny_real

legmarried

ie_type

antpersf

edu_type;

run;






proc sort data=panel nodupkey;

by pnr aar;

run;







/************************/
/* Export data to STATA */
/************************/





proc export data=panel outfile= "G:\Data\Workdata\707677\Common\01Data\02STATA\panel.dta" replace; 

run;

